package com.restaurant.bean;


import java.util.Date;

/**
 * 订单
 * @author OUOrder
 */
public class Order {

    //订单id
    private int oid;
    //购买者id
    private int uid;
    //出售商品的店铺id
    private int sid;
    //出售商品的店铺名称
    private String shopName;
    //总价格
    private double amount;
    //订单状态
    private String orderStatus;
    //订单创建时间
    private Date orderCreateTime;
    //订单上一次更新时间
    private Date orderUpdateTime;

  public Order() {
  }

  public Order(int oid, int uid, int sid, String shopName, double amount, String orderStatus, Date orderCreateTime, Date orderUpdateTime) {
    this.oid = oid;
    this.uid = uid;
    this.sid = sid;
    this.shopName = shopName;
    this.amount = amount;
    this.orderStatus = orderStatus;
    this.orderCreateTime = orderCreateTime;
    this.orderUpdateTime = orderUpdateTime;
  }

  public int getOid() {
    return oid;
  }

  public void setOid(int oid) {
    this.oid = oid;
  }

  public int getUid() {
    return uid;
  }

  public void setUid(int uid) {
    this.uid = uid;
  }

  public int getSid() {
    return sid;
  }

  public void setSid(int sid) {
    this.sid = sid;
  }

  public String getShopName() {
    return shopName;
  }

  public void setShopName(String shopName) {
    this.shopName = shopName;
  }

  public double getAmount() {
    return amount;
  }

  public void setAmount(double amount) {
    this.amount = amount;
  }

  public String getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(String orderStatus) {
    this.orderStatus = orderStatus;
  }

  public Date getOrderCreateTime() {
    return orderCreateTime;
  }

  public void setOrderCreateTime(Date orderCreateTime) {
    this.orderCreateTime = orderCreateTime;
  }

  public Date getOrderUpdateTime() {
    return orderUpdateTime;
  }

  public void setOrderUpdateTime(Date orderUpdateTime) {
    this.orderUpdateTime = orderUpdateTime;
  }
}
